<template lang="html">
  <div class="person-container">
    <div class="person-header">
      <span>个人资料</span>
    </div>
    <div class="person-items">
      <div class="person-icon">
        头像
        <img :src="personInfo.icon" alt="">
      </div>
      <div class="person-name">
        <span>昵称</span>
      </div>
      <div class="person-gender">
        <span>性别</span>
      </div>
      <div class="person-sign">
        <span>签名</span>
      </div>
      <div class="person-born">
        <span>生日</span>
      </div>
      <div class="person-city">
        <span>所在城市</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:'PersonInfo',
  data () {
    return {
      personInfo : {}
    }
  },
  mounted () {
    this.$axios.get(this.HOST + "/burning/personinfo")
    .then(res => {
      console.log(res.data)
      this.personInfo = res.data.userInfo[0]
    })
    .catch(error => {
      console.log(error)
    })
  }
}
</script>

<style lang="less" scoped>
.person-container{
    font-size: 14px;
  .person-header{
    height: 40px;
    background: #000;
    color: #fff;
    font-size:16px;
    text-align: center;
    line-height: 40px;
  }
  .person-items{
    .person-icon{
      height:100px;
      line-height: 100px;
    }
  }
}
</style>
